package com.ethink.warehouse.api;

import com.ethink.warehouse.api.component.request.WarehouseEtonbaoCallbackRequest;
import com.ethink.warehouse.api.component.response.WarehouseEtonbaoCallbackResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * 仓库开放平台 Facade接口
 *
 * @author default
 * @date 2022-11-01
 */
@FeignClient(name = "ethink-warehouse-service", path = "warehouse-service/facade/v1/warehouseOpenapi", contextId = "openapiFacade")
public interface WarehouseOpenapiFacade {
    @PostMapping("/etonbaoCallback")
    @ResponseBody
    WarehouseEtonbaoCallbackResponse etonbaoCallback(@RequestBody WarehouseEtonbaoCallbackRequest request);
}